<!--<p class="justify small">I tag HTML non sono consentiti. Per personalizzare il messaggio, evidenziare 
	il testo desiderato e successivamente selezionare una delle seguenti opzioni.</p>-->
<?$script = 'onmouseover="showEditorHelp(this)" onmouseout="hideEditorHelp(this)"' ;?>
<div id="helper">
<img class="pointer" <?echo $script;?> id="img_url" src="<?echo $base_url;?>style/img/icon_image.png" alt="img" onclick="showImageChooser(this)" />
<img class="pointer" <?echo $script;?> id="link_url" src="<?echo $base_url;?>style/img/icon_link.gif" alt="link" />
<img class="pointer" <?echo $script;?> id="youtube" src="<?echo $base_url;?>style/img/icon_youtube.png" alt="youtube" />
<img class="pointer" <?echo $script;?> id="quote" src="<?echo $base_url;?>style/img/icon_quote.png" alt="quote" />
<br />
<img class="pointer" <?echo $script;?> id="italic_text" src="<?echo $base_url;?>style/img/icon_italic.gif" alt="italic" />
<img class="pointer" <?echo $script;?> id="underline" src="<?echo $base_url;?>style/img/icon_underline.gif" alt="underline" />
<img class="pointer" <?echo $script;?> id="bold_text" src="<?echo $base_url;?>style/img/icon_bold.gif" alt="bold" />
<img class="pointer highline" <?echo $script;?> id="highline" class="highline" src="<?echo $base_url;?>style/img/icon_color.gif" alt="highline" />
<br />
<img class="pointer" <?echo $script;?> id="font_color" src="<?echo $base_url;?>style/img/icon_font_color.gif" alt="color" />
<img class="pointer" <?echo $script;?> id="font_size" src="<?echo $base_url;?>style/img/icon_color.gif" alt="size" />
<img class="pointer" <?echo $script;?> id="olist" src="<?echo $base_url;?>style/img/icon_olist.gif" alt="olist" />
<img class="pointer" <?echo $script;?> id="ulist" src="<?echo $base_url;?>style/img/icon_ulist.gif" alt="ulist" />
<br />
<img class="pointer" <?echo $script;?> id="delete_text" src="<?echo $base_url;?>style/img/icon_strikethrough.png" alt="delete" />
<img class="pointer" <?echo $script;?> id="left_text" src="<?echo $base_url;?>style/img/icon_left.gif" alt="left" />
<img class="pointer" <?echo $script;?> id="right_text" src="<?echo $base_url;?>style/img/icon_right.gif" alt="right" />
<img class="pointer" <?echo $script;?> id="center_text" src="<?echo $base_url;?>style/img/icon_center.gif" alt="center" />
</div>

<?$files = $hd->getUploadedFiles();?>

<div id="image_chooser" style="display:none">
<div id="image_chooser_top"></div>
<div id="image_chooser_body">
	<div>
	<h2>Inserisci immagine</h2>
	<p>Puoi selezionare una delle immagini caricate in &Phi;lomousia usando il menù a tendina, oppure puoi
		inserire direttamente un qualsiasi URL che punta ad un'immagine contenuta in un sito esterno
		(i.e. <span class="italic">http://www.sito.com/percorso/verso/immagine.jpg</span>):</p>
	<input type="text" class="text" id="img_caption_input" value="" /> Didascalia<br />
	<input type="text" class="text" id="img_url_input" value="" /> URL immagine<br />
	<select id="selected_image" class="text">
		<option value="false">Nessuna immagine selezionata</option>
		<?
		foreach($files as $key => $value) {
			$src = $base_url."uploads/".basename($value);
			?><option value="<?echo $src;?>"><?echo basename($value);?></option><?
		}?>
	</select><br /><br />
	<input id="img_chooser" type="button" name="submit" value="Conferma &rarr;" />
	<input id="img_chooser" type="button" name="submit" value="Chiudi &rarr;" onclick="$('image_chooser').hide()" />
	</div>
</div>
<div id="image_chooser_bottom"></div>
</div>

<script type="text/javascript" charset="utf-8">
//<![CDATA[
new createTextEditor("txt");
//]]>
</script>
